<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.itheima.baen.Student" %><%--
  Created by IntelliJ IDEA.
  User: 凤与泥
  Date: 2021/4/27
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生列表</title>
</head>
<body>
    <table border="1px" width="600px">
        <tr>
            <th>学生姓名</th>
            <th>学生年龄</th>
            <th>学生成绩</th>
        </tr>
        <%--<% ArrayList<Student> list = (ArrayList<Student>) session.getAttribute("student");
            for (Student s : list) {
        %>--%>
        <c:forEach items="${student}" var="s">
            <tr>
                <th><%--<%= s.getName()%>--%>${s.name}</th>
                <th><%--<%= s.getAge()%>--%>${s.age}</th>
                <th><%--<%= s.getScore()%>--%>${s.score}</th>
            </tr>
        </c:forEach>
        <%--<% } %>--%>
    </table>
</body>
</html>
